package org.seckill.TestException;

/**
 * Created by wangyg 
 * on 2017/4/20 15:08
 */
public class ExcepBuilder {
	public static void method1() throws Exception {
		throw new NullPointerException("null point Exception");
	}

	public static void method2(){
		throw new IllegalArgumentException("illegel Args");
	}

	public static void method3(){
		try {
			int a=1/0;
		} catch (Exception e) {
			e.printStackTrace();
		}
	}


	public static void method4() throws Exception{
		try {
			int a=1/0;
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static void method5() throws Exception{
		try {
			int a=1/0;
		} catch (Exception e) {

		}
	}

	public static void method6(){
		int i=1/0;
	}

}
